package com.groupbuying.provider.service.impl;

import com.groupbuying.provider.dao.StoreOpexRuleRelDao;
import com.groupbuying.provider.domain.StoreOpexRuleRelDO;
import com.groupbuying.provider.service.StoreOpexRuleRelService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class StoreOpexRuleRelServiceImpl implements StoreOpexRuleRelService {
    private static Logger log = LoggerFactory.getLogger(StoreOpexRuleRelServiceImpl.class);

    @Autowired
    private StoreOpexRuleRelDao storeOpexRuleRelDao;


    /**
     * Description 根据storeID获取门店运营规则 <br>
     *
     * @param storeID
     * @return opexRuleID
     * @author Ywxd <br>
     * @createDate 2019/4/18 17:11<br>
     **/
    @Override
    public String getOpexRuleByStoreID(String storeID) {
        return storeOpexRuleRelDao.getOpexRuleByStoreID(storeID);
    }

    @Override
    public StoreOpexRuleRelDO get(Integer relId) {
        return storeOpexRuleRelDao.get(relId);
    }

    @Override
    public List<StoreOpexRuleRelDO> list(Map<String, Object> map) {
        return storeOpexRuleRelDao.list(map);
    }

    @Override
    public int count(Map<String, Object> map) {
        return storeOpexRuleRelDao.count(map);
    }


}
